package com.siwei.mes.mapper.materials;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.materials.MaterialsTestProjectDesc;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 试验说明表(MaterialsTestProjectDesc)表数据库访问层
 *
 * @author linzi
 * @since 2024-05-18 23:25:59
 */
public interface MaterialsTestProjectDescMapper extends BaseMapper<MaterialsTestProjectDesc> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<MaterialsTestProjectDesc> getList(MaterialsTestProjectDesc entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    MaterialsTestProjectDesc loadById(@Param("id") Long id);

    /**
     * 根据itemCode查询
     *
     * @param itemCode
     * @return
     */
    MaterialsTestProjectDesc loadByItemCode(@Param("itemCode") String itemCode);
}
